package cn.cdnsu.base.mapper;

import cn.cdnsu.base.query.BaseQuery;
import cn.cdnsu.org.domain.Department;
import cn.cdnsu.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseMapper<T> {
    List<T> selectAll();

    T selectById(Long id);

    void update(T t);

    void insert(T t);

    void delete(Long id);

    Integer countTotal(BaseQuery baseQuery);

    List<T> queryPage(BaseQuery baseQuery);

    void batchDelete(@Param("ids") List<Long> ids);
}
